//
//  BKDialPlateView.h
//  XPhoto
//
//  Created by baboy on 2019/2/22.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
//void (^BKDialPlateViewSelectionBlock)(id view, id checkedItemView, NSDictionary * checkedItem);
typedef NS_ENUM(NSInteger, BKDialPlateViewStyle) {
    BKDialPlateViewStyleDefault          = 0,
    BKDialPlateViewStyleTab     = 1
};


@protocol BKDialPlateViewDelegate;

@interface BKDialPlateView : UIView<UIScrollViewDelegate>
@property(nonatomic, strong) IBOutlet UIScrollView *scrollView;
@property(nonatomic, strong) IBInspectable UIColor *textColor;
@property(nonatomic, strong) NSArray* items;
@property(nonatomic, assign) NSInteger selectedIndex;
@property(nonatomic, assign) BKDialPlateViewStyle style;
@property(nonatomic, assign) IBOutlet id <BKDialPlateViewDelegate> delegate;
@end

@protocol BKDialPlateViewDelegate <NSObject>
- (void)dialPlateView:(BKDialPlateView *)view didSelectAtIndex:(NSInteger)index withItem:(id)item;
@end
NS_ASSUME_NONNULL_END
